import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 牛客网.简单题.计算整数位数
 */

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        //write code here......
        if(num <= 0) {
            System.out.print(num);
            return;
        }
        int count = 0;
        while(num != 0) {
            num /= 10;
            count++;
        }
        System.out.print(count);
    }
}

public class Test {
}
